﻿package commands 
{
	import flash.utils.ByteArray;
	import commands.classesinfo.*;
	
	/**
	 * ...
	 * @author wwx
	 * 30000014 过牌（返回）
	 */
	public class PassCmdRsp extends abCommand   
	{
		
		public function PassCmdRsp() //: abCommand(CommandType.CMD_TYPE_PASS_RSP)   
		{
			super(CommandType(CommandType.CMD_TYPE_PASS_RSP));
		}
		
		public var msgSeq:int;//消息号
		public var errorNum:int;//错误号	
		
		public function convertToCmd(bytes:ByteArray, offset:int, len:int):int
		{
			var ret:int = -1;
			msgSeq = (int) (bytes[offset + 0]) + ((int(bytes[offset + 1])) << 8) + ((int(bytes[offset + 2])) << 16) + ((int(bytes[offset + 3])) << 24);
			offset += 4;
			errorNum = (int) (bytes[offset + 0]) + ((int(bytes[offset+1])) << 8) + ((int(bytes[offset+2])) << 16) + ((int(bytes[offset+3])) << 24);
			offset += 4;
			
			return 0;
		}			
		
	}
	
}